Skip to main content

hankel

Hankel(input: any[]) : Mat

param input - An array (1d) or list of numbers, MUST be ODD in length.

returns: Mat - A Hankel matrix. Where the skewing up-right diagonals are constant.

This function constructs a Hankel matrix. A Hankel matrix is much easier understood when seen than when said. However, to explain it, basically, if you take any element on the left hand side of the matrix and follow its diagonal in the up-right direction, it will be constant. An example is:

[[1, 2, 3], [2, 3, 4], [3, 4, 5]].